import { User } from '../model/Model';
import axios from './request'

// 登录方法
export function login(data: User) {
    return axios({
        url: '/users/login',
        method: 'POST',
        data
    })
}

// 注册方法
export function register(data: User) {
    return axios({
        url: '/users/register',
        method: 'POST',
        data
    })
}
